package com.ctshk.rpc.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 机场快线--线下自营自定义用户部门
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-05
 */
@Data
@ApiModel(value="AirportExpressChannelOfflineSelfCustomReq对象", description="机场快线--线下自营自定义用户部门")
public class AirportExpressChannelOfflineSelfCustomReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "加幅策略id")
    private Long increaseStrategyId;

    @NotNull(message = "勾选类型不能为空")
    @Range(message = "勾选类型(1:用户,2:部门)")
    @ApiModelProperty(value = "勾选类型(1:用户,2:部门)")
    private Integer checkType;

    @NotNull(message = "关联ID（用户or部门）")
    @ApiModelProperty(value = "关联ID（用户or部门）")
    private Long relationId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "加幅规则")
    private AirportExpressIncreaseStrategyRuleReq airportExpressIncreaseStrategyRule;
}
